package com.chonor.mall.model;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;

public class FlashPromotionProduct implements Serializable {
    private Long id;

    private Long flashPromotionId;

    private Long productId;

    @ApiModelProperty(value = "活动价")
    private BigDecimal flashPrice;

    @ApiModelProperty(value = "商品数量")
    private Integer flashCount;

    @ApiModelProperty(value = "每人限购数量")
    private Integer flashLimit;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getFlashPromotionId() {
        return flashPromotionId;
    }

    public void setFlashPromotionId(Long flashPromotionId) {
        this.flashPromotionId = flashPromotionId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public BigDecimal getFlashPrice() {
        return flashPrice;
    }

    public void setFlashPrice(BigDecimal flashPrice) {
        this.flashPrice = flashPrice;
    }

    public Integer getFlashCount() {
        return flashCount;
    }

    public void setFlashCount(Integer flashCount) {
        this.flashCount = flashCount;
    }

    public Integer getFlashLimit() {
        return flashLimit;
    }

    public void setFlashLimit(Integer flashLimit) {
        this.flashLimit = flashLimit;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", flashPromotionId=").append(flashPromotionId);
        sb.append(", productId=").append(productId);
        sb.append(", flashPrice=").append(flashPrice);
        sb.append(", flashCount=").append(flashCount);
        sb.append(", flashLimit=").append(flashLimit);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}